<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/css/reset.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/css/main.css}" type="text/css"/>
    <script th:src="@{/js/jquery-1.12.4.min.js}" type="text/javascript"></script>
    <script th:src="@{/js/jquery-ui.min.js}" type="text/javascript"></script>
</head>
<body>
<!--头部  开始-->
<div th:fragment="header">
    <div class="header_con">
        <div class="header">
            <div class="welcome fl">欢迎来到天天放心购!</div>
            <div class="login_btn fl"><a href="http://www.softeem.com/web1/index.php" style="margin-left:30px"
                                         target="_blank"></a></div>
            <div class="fr">
                <div class="login_btn fl">
                    <div th:if="${session.get('login')}==null">
                        <a th:href="@{/user/toLogin}">登录</a>
                        <span>|</span>
                        <a th:href="@{/user/toRegister}">注册</a>
                    </div>
                    <div th:if="${session.get('login')}!=null">
                        欢迎您：<em th:text="${session.get('login').uName}"></em>
                        <span>|</span>
                        <a th:href="@{/user/loginOut}">注销</a>
                    </div>
                    <input type="hidden" id="userId" th:if="${session.get('login')}!=null" th:value="${session.get('login').uId}">

                </div>

                <div class="user_link fl">
                    <span>|</span>
                    <a th:href="@{/user/record}">用户中心</a>
                    <span>|</span>
                    <a th:href="@{/user/car/list}">我的购物车</a>
                    <span>|</span>
                    <a th:href="@{/user/order/list}">我的订单</a>
                </div>
            </div>
        </div>
    </div>
</div>
<!--头部 结束-->

<div th:fragment="footer">
    <div class="footer login_footer">
        <div class="links">
            <a href="">关于我们</a>
            <span>|</span>
            <a href="">热门商品</a>
            <span>|</span>
            <a href="">联系我们</a>
            <span>|</span>
            <a href="">在线订购</a>
        </div>
        <p>CopyRight © 2022 jfbjsbsjhuewhf</p>
    </div>
</div>
</body>
</html>